package com.tree.jobquartz;

import com.tree.jobquartz.job.BackTestRequestJob;
import com.tree.jobquartz.template.SchedulerTemplate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class JobQuartzApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(JobQuartzApplication.class, args);

//        SchedulerTemplate schedulerTemplate = (SchedulerTemplate)run.getBean("schedulerTemplate");
//        schedulerTemplate.startBackTestJob("china","","","", BackTestRequestJob.class);
//        System.out.println("发起完成");
    }

}
